﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Castle.ActiveRecord;
using NHibernate.Criterion;
using LIB;
using System.Collections;
using System.Web.UI.HtmlControls;

public partial class tap_chi : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                tapchi_Info[] lstTapChi = tapchi_Info.FindAll(Order.Desc("id"));
                if (lstTapChi.Length > 0)
                {
                    litEmbed.Text = lstTapChi[0].tcLink;
                    lblTitle.Text = lstTapChi[0].tcName;
                }
                repTapChi.DataSource = lstTapChi;
                repTapChi.DataBind();
            }
        }
        catch (Exception ex) { }
    }
}